<template>
  <div>
      <h2>用户界面</h2>
      <div>
          <p v-for = "(val, key) in $route.params" :key = "key">{{key}} - {{val}}</p>
      </div>
  </div>
</template>

<style lang='stylus'  rel='stylesheet/stylus'>
</style>
<script>
export default {
/*     watch:{
        "$route"(newVal, oldVal){
            console.log(newVal,oldVal,this)     //旧路由，新路由，当前组件
        }
    }, */
    mounted () {console.log(this,"mounted")}
}

</script>